package com.qf.commerce.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


/*
 * @author 358
 * @since JDK 1.8
 * @data 2023/9/12 19:42
*/

@Data
public class BalanceTransactions {
    /**
    * 余额变动id
    */
    private Integer balanceTransactionsId;

    /**
    * 用户ID
    */
    private Integer userId;

    /**
    * 变动金额
    */
    private BigDecimal amount;

    /**
    * 变动后金额
    */
    private BigDecimal amonutAfter;

    /**
    * 变动类型 0=消费 1=充值
    */
    private Integer transactionType;

    /**
    * 变动时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date transactionDate;

    /**
    * 变动说明
    */
    private String comment;
}